<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="com.lywz.core.util.IpUtil"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>${webtitle} - 抱歉，没有找到该网页</title>
	</head>
	<body id="error500Page" class="error">
		<div id="container">
			<div id="opi">
				<div class="http500 error msg">
					<h2>500</h2>
					<p>抱歉，内部错误。</p>
				</div>
			</div>
		</div>
	</body>
</html>
<%try{				
		org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory.getLog("monitor");		
		String url = "http://"+request.getServerName()+ "/" + (String)request.getAttribute("javax.servlet.error.request_uri")+
					(request.getQueryString()==null?"":("?"+request.getQueryString()));
		String referer = request.getHeader("Referer");
		String ip = IpUtil.getClientIP(request);		
		String p = "500|" + url + "|" + referer + "|" + ip;		
		java.lang.Throwable t = (java.lang.Throwable)request.getAttribute("javax.servlet.error.exception");
		logger.warn(p,t);
	}catch(java.lang.Throwable t1){
		t1.printStackTrace();
	}%>
	
